<!-- 去旅行页面  最右侧悬浮 -->
<template>
  <div class="box">
    <ul class="nav-list">
      <li class="nav-item">
        <img src="./../../assets/sales-toolbar3_06.png" width="18px" height="18px" />
      </li>
      <li class="nav-item">
        <img src="./../../assets/sales-toolbar3_08.png" width="18px" height="18px" />
      </li>
      <li class="nav-item">
        <img src="./../../assets/sales-toolbar3_03.png" width="18px" height="18px" />
      </li>
      <li class="nav-item" style="margin-top:10px">
        <img src="./../../assets/sales-toolbar3_10.png" width="18px" height="18px" />
        <div class="show-box">
          <span class="show-box-start">+ 关注</span>
          <span class="show-box-good">马蜂窝良品</span>
        </div>
      </li>
      <li class="nav-item">
        <img src="./../../assets/sales-toolbar3_12.png" width="18px" height="18px" />
        <div class="show-wx-box">
          <img
            src="https://images.mafengwo.net/images/sales/list_wx_qr_code.jpg"
            width="104px"
            height="104px"
          />
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },

  components: {},

  methods: {}
};
</script>
<style scoped lang="stylus" ref="stylesheet/stylus">
.box {
  position: fixed;
  right: 0;
  top: 0;
  border-right: 5px solid #777981;
  height: 100%;
  z-index: 999;

  .nav-list {
    position: relative;
    top: 45%;

    .nav-item {
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 2px;
      background-color: #777981;
      margin-bottom: 1px;
      cursor: pointer;

      .show-box, .show-wx-box {
        display: none;
        width: 105px;
        height: 105px;
        border: 2px solid #ff9d00;
        font-size: 14px;
        background-color #ffffff

        .show-box-start {
          display: block;
          background-color: #fd6b24;
          padding: 0 10px;
          width: 50%;
          line-height: 30px;
          color: #ffffff;
          margin: 25px 0 7px 16px;
        }

        .show-box-good {
          text-align: center;
          display: block;
          color: #666;
          margin-top: 10px;
        }
      }

      &:hover {
        background-color: #ff9d00;
        box-shadow: 5px 0 0 0 #ff9d00;

        &:nth-of-type(1) {
          position: relative;

          &:before {
            content: '我的订单';
            position: absolute;
            right: 37px;
            width: 75px;
            height: 38px;
            background-color: #ff9d00;
            text-align: center;
            line-height: 38px;
            color: #ffffff;
            font-size: 14px;
          }
        }

        &:nth-of-type(2) {
          position: relative;

          &:before {
            content: '我的优惠券';
            position: absolute;
            right: 37px;
            width: 85px;
            height: 38px;
            background-color: #ff9d00;
            text-align: center;
            line-height: 38px;
            color: #ffffff;
            font-size: 14px;
          }
        }

        &:nth-of-type(3) {
          position: relative;

          &:before {
            content: '我的收藏';
            position: absolute;
            right: 37px;
            width: 75px;
            height: 38px;
            background-color: #ff9d00;
            text-align: center;
            line-height: 38px;
            color: #ffffff;
            font-size: 14px;
          }
        }

        &:nth-of-type(4) {
          position: relative;

          .show-box {
            position: absolute;
            right: 37px;
            top: 0;
            display: block;
          }
        }

        &:nth-of-type(5) {
          position: relative;

          .show-wx-box {
            position: absolute;
            right: 37px;
            top: -39px;
            display: block;
          }
        }
      }
    }
  }
}
</style>